package com.example.xiefeihong.chatroom.dto;

import com.example.xiefeihong.chatroom.enums.StatusCodeEnum;
import com.example.xiefeihong.chatroom.enums.StatusMsgEnum;

public class Status {

	public static final String SUCCESS = "success";
	public static final String ERROR = "error";

	private String status = SUCCESS;
	private String msg = StatusMsgEnum.NORMAL.toString();
	private Object result;
	private String statusCode = StatusCodeEnum.NORMAL.toString();

	public Status() {

	}

	public Status(String status, StatusCodeEnum statusCode, String msg) {
		this.status = status;
		this.statusCode = statusCode.toString();
		this.msg = msg;
	}

	public Status(String status, StatusCodeEnum statusCode, StatusMsgEnum msg) {
		this.status = status;
		this.statusCode = statusCode.toString();
		this.msg = msg.toString();
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

}
